package batframework.mvc.render;

import java.io.IOException;

import batframework.mvc.exception.RenderException;



public class ErrorRender extends AbstractRender
{
	private int error;

	@Override
	public void render()
	{
		try {
			response.sendError(error);
		} catch (IOException e) {
			throw new RenderException(e);
		}
	}

	public ErrorRender(int error)
	{
		this.error = error;
	}

	

}
